//
//  AnimationConfigure.m
//  CAAnimation
//
//  Created by 周文成 on 2017/12/12.
//  Copyright © 2017年 C-LOVE. All rights reserved.
//

#import "AnimationConfigure.h"

@implementation AnimationConfigure

- (instancetype)init {
    self = [super init];
    if (self) {
        [self propertyDefualtConfigure];
    }
    return self;
}

- (void)propertyDefualtConfigure {
    _duration = 1.0;
    _repeatCount = 1;
    _autoreverses = NO;
    _fillMode = kCAFillModeRemoved;
}


- (void)configureWithAnimation:(CAAnimation *)animation {
    animation.duration = self.duration;
    animation.repeatCount = self.repeatCount;
    animation.autoreverses = self.autoreverses;
    animation.fillMode = self.fillMode;
}


@end


